﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SZEWComponentLibraryUtilExample
{
    public partial class PointInputForm : Form
    {
        public DialogResult result = DialogResult.None;
        public double x = 0.0;
        public double y = 0.0;
        public double z = 0.0;
        public PointInputForm()
        {
            InitializeComponent();
        }

        private void button_OK_Click(object sender, EventArgs e)
        {
            result = DialogResult.OK;
            if(tb_X.Text != null)
                x = Convert.ToDouble(tb_X.Text);
            if (tb_Y.Text != null)
                y = Convert.ToDouble(tb_Y.Text);
            if (tb_Z.Text != null)
                z = Convert.ToDouble(tb_Z.Text);
            this.Close();
        }
    }
}
